﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *  
 **/

using System.Reflection;
using Peter.Common.Dialog;

namespace Peter.Logic.Dialogs
{
   /// <summary>
   /// The model for the about dialog.
   /// </summary>
   public class ModelAbout : DialogBase
   {
      private string m_Version;

      /// <summary>
      /// Initializes a new about model.
      /// </summary>
      public ModelAbout ()
      {
         this.Width = 350;
         this.Height = 300;
         this.OkButtonText = "Close";
         this.ShowCancelButton = false;
         this.Version = Assembly.GetExecutingAssembly ().GetName ().Version.ToString ();
      }

      /// <summary>
      /// Gets the version
      /// </summary>
      public string Version
      {
         get { return this.m_Version; }
         private set
         {
            this.m_Version = value;
            this.RaisePropertyChanged ("Version");
         }
      }
   }
}
